@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', $category->seo_title)
@section('content')
<div class="gsjs">
            <div class="gsjs_tit">
            @if($category->parent_id > 0 && isset($menu[$category->parent_id]) && !empty($menu[$category->parent_id]))
            	@foreach($menu[$category->parent_id]['child'] as $k=>$row)
                <span
                @if($category->id == $row['id'])
                 class="on"
                @endif
                 ><a href="{{url($row['controller'].'?catid='.$row['id'])}}">{{$row['name']}}</a></span>
                @endforeach
                
            @endif    
            </div>
            
            <div class="gywm_nr">
                <div class="gywmbox" style="display: block;">
                    <div class="gsgk">
                        {!!$category->content!!}
                    </div>
                </div>
                
                
            </div>
        </div>
        <script type="text/javascript">
            $(function(){
                $('body').on('click','#wx_qun',function(){
                    $('.div2').css('display','block');
                });
                $('body').on('click','#qq_qun',function(){
                
                    $('.div1').css('display','block');
                });
            })
        </script>
<script>
$(".zyfz .zyfz_tit a").each(function (index) {
    $(this).click(function () {
        $(".on1").removeClass("on1");
        $(this).addClass("on1");
        $(".zyfz .zyfzbox .zyfz_nr:eq(" + index + ")").show().siblings().hide();
    });
});
        </script>
@endsection
@section('footer')
     @include('common.footer')
@stop